package br.com.wagnerpaz.javahook;

/**
 * <p>Encapsulate a native key event.</p>
 * 
 * @author Wagner Paz
 * @since  1.0
 */
public class NativeKeyboardEvent
{
	private int  id;
	private long when;
	private int  modifiers;
	private int  keyCode;
	
	public NativeKeyboardEvent(int id, long when, int modifiers, int keyCode)
	{
		this.id        = id;
		this.when      = when;
		this.modifiers = modifiers;
		this.keyCode   = keyCode;
	}
	
	/**
	 * @return
	 */
	public int getId()
	{
		return id;
	}
	
	/**
	 * @return
	 */
	public long getWhen()
	{
		return when;
	}
	
	/**
	 * @return
	 */
	public int getModifiers()
	{
		return modifiers;
	}
	
	/**
	 * @return
	 */
	public int getKeyCode()
	{
		return keyCode;
	}
}